package com.example.vue.controller;

import com.example.vue.data.ECommerceCategoryData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author : liuf
 * @version V1.0
 * @title: HomeController
 * @date 2025年05月17日 17:12
 **/
@RestController
@RequestMapping("/api")
public class HomeController {

    @GetMapping("/product/getBaseCategoryList")
    public Map<String, Object> categoryList() {
        System.out.println("三级联动数据");
        return ECommerceCategoryData.generateFullData();
    }
}
